package com.come4loves.game.dataconfig.model;

import java.util.Date;

import com.come4loves.core.dataconfig.ModelAdapter;
import com.come4loves.core.dataconfig.annotation.DataFile;
import com.come4loves.core.utils.TimeUtils;

@DataFile(fileName = "SystemConfig")
public class SystemConfig implements ModelAdapter {
	
	/**
	 * 刷新时间
	 */
	private int cardRefreshGem;
	/**
	 * 刷新时间
	 */
	private int cardRefreshTime;
	/**
	 * 卡牌组数量限制
	 */
	private int cardGroupNumLimit;
	/**
	 * 卡牌初始等级
	 */
	private int cardLevelInitialValue;
	/**
	 * 卡牌初始出手优先度
	 */
	private int cardPriorityInitialValue;
	
	/**
	 * 卡牌组中卡牌数量限制
	 */
	private int cardGroupMaxCardNum;
	
	/**
	 * 战斗中初始法力值
	 */
	private int fightInitialMagic;
	/**
	 * 战斗中初始卡牌数量
	 */
	private int fightInitialCardNum;
	/**
	 * 战斗中最大法力值
	 */
	private int fightMaxMagic;
	/**
	 * 每回合增加法力值
	 */
	private int fightEachRoundAddMagic;
	/**
	 * 战斗中每回合限制时间
	 */
	private int fightEachRoundTime;
	
	@Override
	public void initialize() {
	}

	public int getCardGroupNumLimit() {
		return cardGroupNumLimit;
	}

	public int getCardLevelInitialValue() {
		return cardLevelInitialValue;
	}

	public int getCardPriorityInitialValue() {
		return cardPriorityInitialValue;
	}

	public int getFightInitialMagic() {
		return fightInitialMagic;
	}

	public int getFightInitialCardNum() {
		return fightInitialCardNum;
	}

	public int getFightMaxMagic() {
		return fightMaxMagic;
	}

	public int getFightEachRoundAddMagic() {
		return fightEachRoundAddMagic;
	}

	public int getFightEachRoundTime() {
		return fightEachRoundTime;
	}
	
	public int getCardGroupMaxCardNum() {
		return cardGroupMaxCardNum;
	}

	public int getCardRefreshGem() {
		return cardRefreshGem;
	}

	public int getCardRefreshTime() {
		Date refreshDate = TimeUtils.string2TodyTime(cardRefreshTime + ":00");
		int convertLongTime2IntTime = TimeUtils.convertLongTime2IntTime(refreshDate.getTime());
		return convertLongTime2IntTime;
	}

	
}